﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MercuryFE
{
    /// <summary>
    /// Interaction logic for ErrorMessage.xaml
    /// </summary>
    public partial class ErrorMessage : MyWindow
    {
        public ErrorMessage(string errorDetails)
        {
            InitializeComponent();

            errorDetails += Environment.NewLine + Environment.NewLine + Environment.NewLine + Environment.NewLine + "Press 'Back' to close this message.";

            this.errorDetails.Text = errorDetails;
        }

        public override void DoNavigation(NavigationHook.NavigationTask navigationTask, bool normalSpeed)
        {

            switch (navigationTask)
            {
                case NavigationHook.NavigationTask.Left:

                    break;
                case NavigationHook.NavigationTask.Right:

                    break;
                case NavigationHook.NavigationTask.Up:

                    break;
                case NavigationHook.NavigationTask.Down:

                    break;
                case NavigationHook.NavigationTask.Select:

                    break;
                case NavigationHook.NavigationTask.Back:
                     this.Close();

                    break;
                case NavigationHook.NavigationTask.Pause:

                    break;

            }

        }


        //private void Window_KeyDown(object sender, KeyEventArgs e)
        //{
        //    if (e.Key == Key.D1)
        //}
    }
}
